<?php /* Smarty version Smarty-3.1.12, created on 2013-01-06 12:00:16
         compiled from "templates\default\kategori.tpl" */ ?>
<?php /*%%SmartyHeaderCode:908450ccee4cc8a724-98305400%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '50d999cefe8cdbf08bfcd590038a2e17ca6e678f' => 
    array (
      0 => 'templates\\default\\kategori.tpl',
      1 => 1357473615,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '908450ccee4cc8a724-98305400',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.12',
  'unifunc' => 'content_50ccee4cd87ec9_43522287',
  'variables' => 
  array (
    'kategori_id' => 0,
    'tema' => 0,
    'sonuc' => 0,
    'makaleler' => 0,
    'bar' => 0,
    'makale_sayisi' => 0,
    'sayfalama' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_50ccee4cd87ec9_43522287')) {function content_50ccee4cd87ec9_43522287($_smarty_tpl) {?><?php if (!is_callable('smarty_function_bbcode')) include 'C:\\wamp\\www\\BlogS\\libs\\plugins\\function.bbcode.php';
?><?php echo $_smarty_tpl->getSubTemplate ("header.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>


<script type="text/javascript">
    $(document).ready(function (){

    $('#bbcode').markItUp(myBbcodeSettings);

    $('#emoticons a').click(function() {
    emoticon = $(this).attr("title");
    $.markItUp( { replaceWith:emoticon } );
});

$("#makale_ekle").hide();
$("#m_ekle").click(function (){
$("#m_ekle").hide("slow");
$("#makale_ekle").toggle("slow");
});
});
                
                
</script>
<!-- Sol-->
<?php echo $_smarty_tpl->getSubTemplate ("menu.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>


<!-- SaÃ°-->
<div id="sag">
    <?php if ($_SESSION['durum']!=''&&$_GET['id']!=''){?>
        <div id="makale_ekle">
            <div class="register_title"><strong>Yazı ekle</strong></div>
            <div class="orta_orta">
                <div class="orta_yazi">
                    <form id="yazi_ekle" action="kategoriler.php?add=article" method="post" enctype="multipart/form-data" >
                        <input type="hidden" name="kategori_id" value="<?php echo $_smarty_tpl->tpl_vars['kategori_id']->value;?>
" />
                        Başlık:<br /><input style="width:560px;" type="text" name="baslik" /><br />
                        Resim:<br /><input id="image" style="width:560px;" type="file" name="image" /><br />
                        <div id='preview'></div>
                        Konu:<br />
                        <div id="emoticons">
                            <a title=":D"><img src="<?php echo $_smarty_tpl->tpl_vars['tema']->value;?>
/images/emoticon-happy.png" /></a>
                            <a title=":("><img src="<?php echo $_smarty_tpl->tpl_vars['tema']->value;?>
/images/emoticon-unhappy.png" /></a>
                            <a title=":O"><img src="<?php echo $_smarty_tpl->tpl_vars['tema']->value;?>
/images/emoticon-surprised.png" /></a>
                            <a title=":P"><img src="<?php echo $_smarty_tpl->tpl_vars['tema']->value;?>
/images/emoticon-tongue.png" /></a>
                            <a title=";)"><img src="<?php echo $_smarty_tpl->tpl_vars['tema']->value;?>
/images/emoticon-wink.png" /></a>
                            <a title=":)"><img src="<?php echo $_smarty_tpl->tpl_vars['tema']->value;?>
/images/emoticon-smile.png" /></a>
                        </div>
                        <textarea id="bbcode" name="mesaj" style="border: solid 1px #179EE6; height: 200px;" rows="" cols=""></textarea>
                        <input type="button" onclick="document.getElementById('yazi_ekle').submit();" name="gönder" />
                    </form>
                </div>
            </div>
            <div class="orta_alt"></div>
        </div>
        <a id="m_ekle">Bu kategoriye yazı yazmak için buraya tıklayın.</a><br /><br />
    <?php }?>

    <?php if ($_GET['add']=="article"){?>
        <div class="register_title"><strong>Yazı ekle</strong></div>
        <div class="orta_orta">
            <div class="orta_yazi"><?php echo $_smarty_tpl->tpl_vars['sonuc']->value;?>
</div>
        </div>
        <div class="orta_alt"></div>
    <?php }?>

    <?php  $_smarty_tpl->tpl_vars['bar'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['bar']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['makaleler']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['bar']->key => $_smarty_tpl->tpl_vars['bar']->value){
$_smarty_tpl->tpl_vars['bar']->_loop = true;
?>
        <div class="orta_title">
            <div class="entry_comment"><strong><?php echo $_smarty_tpl->tpl_vars['bar']->value[10];?>
</strong></div>
            <div class="entry_title"><strong><a href="makale.php?id=&sayfa=makale.php?id=<?php echo $_smarty_tpl->tpl_vars['bar']->value[0];?>
"><?php echo $_smarty_tpl->tpl_vars['bar']->value[1];?>
</a></strong></div>
            <div class="entry_date"><strong><?php echo $_smarty_tpl->tpl_vars['bar']->value[3];?>
</strong></div>
        </div>
        <div class="orta_orta">
            <div class="orta_icerik">
                <div class="orta_yazi"><img style="width: 180px;" src="<?php echo $_smarty_tpl->tpl_vars['bar']->value[7];?>
" alt="" /><?php echo smarty_function_bbcode(array('tema'=>$_smarty_tpl->tpl_vars['tema']->value,'text'=>$_smarty_tpl->tpl_vars['bar']->value[2]),$_smarty_tpl);?>
</div>
                <div class="orta_menu">
                    <a href="uye.php?id=<?php echo $_smarty_tpl->tpl_vars['bar']->value[4];?>
"><img src="templates/default/images/ico1.png" alt="" /><?php echo $_smarty_tpl->tpl_vars['bar']->value[9];?>
</a>
                    <a href="kategoriler.php?id=<?php echo $_smarty_tpl->tpl_vars['bar']->value[5];?>
"><img src="templates/default/images/ico3.png" alt="" /><?php echo $_smarty_tpl->tpl_vars['bar']->value[8];?>
</a>
                    <a href="makale.php?id=<?php echo $_smarty_tpl->tpl_vars['bar']->value[0];?>
"><img src="templates/default/images/ico5.png" alt="" /><?php echo $_smarty_tpl->tpl_vars['bar']->value[6];?>
 Okunma</a>
                    <a href="makale.php?id=<?php echo $_smarty_tpl->tpl_vars['bar']->value[0];?>
">&nbsp;Devamı..</a>
                </div>
            </div>
        </div>
        <div class="orta_alt"></div>
    <?php } ?>

    <?php if ($_smarty_tpl->tpl_vars['makale_sayisi']->value>0){?>
        <div class="register_title"><strong>Sayfalar</strong></div>
        <div class="orta_orta">
            <div class="orta_yazi">
                <div class="sayfalama">
                    <?php echo $_smarty_tpl->tpl_vars['sayfalama']->value;?>

                </div>
            </div>
        </div>
        <div class="orta_alt"></div>
    <?php }else{ ?>
        <div class="register_title"><strong>Hata</strong></div>
        <div class="orta_orta">
            <div class="orta_yazi">
                Sitede herhangi bir yazı bulunmamakta.
            </div>
        </div>
        <div class="orta_alt"></div>
    <?php }?>
</div>

<div class="both"></div>
</div>

<?php echo $_smarty_tpl->getSubTemplate ("footer.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>

</div>

</div>
</body>
</html><?php }} ?>